﻿package com.snzflash.components.list 
{
	import flash.events.Event;
	import org.casalib.display.CasaMovieClip;
	import org.casalib.display.CasaSprite;
	
	/**
	 * базовый рендерер для листа
	 * @author firsoff maxim, tel: +79222345364, skype: maxim.firsoff
	 */
	public class ListItemRenderer extends CasaMovieClip implements IListItemRenderer
	{
		[Bindable]
		protected var _data:Object;
		protected var _selected:Boolean;
		
		public function ListItemRenderer() 
		{
			super();
			init();
		};
		
		
		protected function init():void
		{
			stop();
		};
		
		protected function  updateDisplayList():void 
		{
			
		};
		[Bindable]
		public function get data():Object { return _data; };
		
		public function set data(value:Object):void 
		{
			_data = value;
			updateDisplayList();
		};
		
		public function get selected():Boolean { return _selected; };
		
		public function set selected(value:Boolean):void 
		{
			_selected = value;
		};
		
	}

}